﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AccesoDatos;

namespace BussinessLogic
{
    public static class FabricaContexto
    {
        private static DataClassesSchoolDataContext _contexto = null;

        /// <summary>
        /// Patron Singleton
        /// </summary>
        public static DataClassesSchoolDataContext Contexto
        {
            get
            {
                if (_contexto == null) _contexto = new DataClassesSchoolDataContext();
                return _contexto;
            }
        }
    }
}
